﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace WeChat.Models
{
    [Table("XF_Users")]
    public partial class XFUser
    {
        [Key]
        public int UserID { get; set; }

        public string UserName { get; set; }

        public string Password { get; set; }

        public string Email { get; set; }

        public string Question { get; set; }

        public string Answer { get; set; }

        public int RoleID { get; set; }

        public int UserGroup { get; set; }

        public DateTime? LastLoginTime { get; set; }

        public int Status { get; set; }

        public bool IsOnline { get; set; }

        public bool IsLimit { get; set; }

        public DateTime? CreateDate { get; set; }

        public string CreateUser { get; set; }

        public DateTime? LastUpdateDate { get; set; }

        public string LastUpdateUser { get; set; }

        public bool Enable { get; set; }

        [ForeignKey("UserID")]
        public virtual XFUserExtend UserExtend { get; set; }
    }
}
